package com.ple.app.jzsf;

import android.app.Activity;
import android.content.Intent;
import android.view.View;
import android.widget.ImageButton;

import com.ple.app.importdata.ImportDataActivity;
import com.ple.app.map.MapActivity;
import com.ple.app.soil.SoilDataActivity;
import com.ple.app.user.UserInfoActivity;

import java.util.List;
import java.util.Map;

/**
 * Created by twenj on 2016/11/10.
 */

public class TabOnClickListener implements View.OnClickListener {

    private Activity activity;
    private List<ImageButton> imgBtnList;

    TabOnClickListener( Activity activity,List<ImageButton> imgBtnList){
        this.activity = activity;
        this.imgBtnList = imgBtnList;
    }

    @Override
    public void onClick(View v) {
        resetImage();
        switch (v.getId()){

        }
    }

    /**
     *
     */

    /**
     * 将所有的图片设置为默认色
     */
    private void resetImage() {
        for(ImageButton igb:imgBtnList){
            igb.setImageResource(R.mipmap.ic_launcher);
        }
    }
}
